/*
 * send.h
 *
 *  Created on: 5 nov. 2013
 *      Author: julien
 */

#ifndef SEND_H_
#define SEND_H_

#include <sys/socket.h>
#include <sys/types.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <netinet/in.h>

#define MAXBUF 1024

void sendFile(char* buffer);
void sendRequest(char* message, int socket, listeClients liste);
int sendline(int fd, const void *str, size_t maxlen);
int readline(int fd, void *str, int max_len);
void getNames(listeClients liste, int socket);
int sendToName(listeClients liste, char* message);


#endif /* SEND_H_ */
